<?php

/**
 * BaseMovimientochequecartera
 * 
 * This class is member of the DAO layer.
 * 
 * @property integer $id
 * @property integer $idMovimientoCaja
 * @property integer $idCheque
 * @property timestamp $finsert
 * @property Movimientocheque $Movimientocheque
 * @property Movimientodecaja $Movimientodecaja
 * 
 * @author     Claudio Corlatti <corlatti@gmail.com>
 *  $Id: BaseMovimientochequecartera.php 12 2010-07-06 04:34:57Z corlatti $
 */
abstract class BaseMovimientochequecartera extends Doctrine_Record {
    public function setTableDefinition()
    {
        $this->setTableName('movimientochequecartera');
        $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'length' => 4, 'primary' => true, 'autoincrement' => true));
        $this->hasColumn('idMovimientoCaja', 'integer', 4, array('type' => 'integer', 'length' => 4, 'notnull' => true));
        $this->hasColumn('idCheque', 'integer', 4, array('type' => 'integer', 'length' => 4, 'notnull' => true));
        $this->hasColumn('finsert', 'timestamp', null, array('type' => 'timestamp', 'notnull' => true));
        $this->hasColumn('fecha', 'date', null, array('type' => 'timestamp', 'notnull' => true));
    }

    public function setUp()
    {
        $this->hasOne('Movimientocheque', array('local' => 'idCheque',
                                                'foreign' => 'id'));

        $this->hasOne('Movimientodecaja', array('local' => 'idMovimientoCaja',
                                                'foreign' => 'id'));
    }
}
?>